package com.demo.design.behavioral.state.impl;

import com.demo.design.behavioral.state.CandyMachine;
import com.demo.design.behavioral.state.State;

public class NoneMoneyState implements State {

    private CandyMachine candyMachine;

    public NoneMoneyState(CandyMachine candyMachine) {
        this.candyMachine = candyMachine;
    }

    @Override
    public void insertCoins() {

    }

    @Override
    public void takeBackCoins() {
        System.err.println("没钱");
    }

    @Override
    public void turnCrank() {
        System.err.println("请先投币");
    }

    @Override
    public void dispense() {
        System.err.println("请转动把手");
    }
}
